#! /usr/bin/env python

# type() can return typename
print(type(123))

# type(name, (bases), {dict}) can construct new class in runtime
obj = type("newClass", (object,), {"a":1, 'b':2, 'foo':'bar'})
print(type(obj))
print(obj.a)
print(obj.b)
print(obj.foo)
